package com.wanmait.bootdemo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
//如果不配置@ComponentScan默认扫描启动类所在的包及其子包下面的类
//一旦配置了@ComponentScan则覆盖默认配置
//@ComponentScan({"com.wanmait.demo","com.wanmait.bootdemo"})
//配置mybatis的mapper接口所在的包的自动扫描
@MapperScan("com.wanmait.bootdemo.mapper")
@ServletComponentScan// servlet 过滤器 监听器 都起作用，@WebServlet @WebListener @WebFilter
public class BootdemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(BootdemoApplication.class, args);
        //取消banner
        /*SpringApplication application = new SpringApplication(BootdemoApplication.class);
        application.setBannerMode(Banner.Mode.OFF);
        application.run(args);*/
    }

}
